import request from '@/utils/request'
const group_name = 'qa'
const api_name = 'problem'
export default {
  list(type,label,page,size){
    return request({
      url:`/${api_name}/${type}/${label}/${page}/${size}`,
      method: 'get'
    })
  },
  findById(id){
    return request({
      url:`${api_name}/${id}`,
      method:'get'
    })
  },
  findReplyByProblemId(id){
    return request({
      url:`/reply/${api_name}/${id}`,
      method:'get'
    })
  },
  save(pojo){
    return request({
      url: `${api_name}`,
        method: 'post',
        data: pojo
    })
}
}
